package com.paradogs.login.pojo.dto;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * @author: yumi
 * @date: 2025/4/17  17:46
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterDTO {

    @NotNull
    @Length(min = 3, max = 20, message = "账号长度需要在{min}-{max}")
    private String account;
    @NotNull
    @Length(min = 3, max = 20, message = "密码长度需要在{min}-{max}")
    private String password;
    @NotNull
    @Length(min = 3, max = 20, message = "密码长度需要在{min}-{max}")
    private String password2;

}
